#include "stdafx.h" 
#include "alloc.h"

share_alloc::share_alloc (void)
{
	need_destroy_ = false;
}

share_alloc::~share_alloc (void)
{
}

void 
share_alloc::destroy ()
{
	if( this->need_destroy_ )
		delete this;
}

bool 
share_alloc::query_interface (void** out, const char* key)
{
	return false;
}


void*	
share_alloc::alloc (size_t size)
{
	return new char[size];
}

void	
share_alloc::dealloc (void* p)
{
	if( p )
		delete []p;
}
